#include <iostream>
#include <complex>
using namespace std;

int main()
{
    int a, b;
    int c, d;
    cout<< "Enter first number Re: ";
    cin>> a;
    cout<< "Enter first number Jm: ";
    cin>> b;

    cout<< "Enter second number Re: ";
    cin>> c;
    cout<< "Enter second number Jm: ";
    cin>> d;

 complex<double> c1(a, b);
 complex<double> c2(c, d);

 cout << c1<< endl;
cout<<c2<<endl;
 complex<double> c3 = c1 + c2;
 cout << c3 << endl;
 return 0;
}
